﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using CommunitySystem.GuaZhiDuanLianService;

namespace CommunitySystem
{
    public partial class ShenHeYanQiWindow : ChildWindow
    {
        public string List = "";
        private GuaZhiDuanLianServiceClient Client1 =
           new GuaZhiDuanLianServiceClient();

        public string istongyi = "";
        public ShenHeYanQiWindow(string list)
        {
            InitializeComponent();
            List = list;
            Client1.ShenHeYanQiGuaZhiEmpCompleted += new EventHandler<ShenHeYanQiGuaZhiEmpCompletedEventArgs>(Client1_ShenHeYanQiGuaZhiEmpCompleted);
        }

        void Client1_ShenHeYanQiGuaZhiEmpCompleted(object sender, ShenHeYanQiGuaZhiEmpCompletedEventArgs e)
        {
            //SilverlightMessageBoxLibrary.Message.InfoMessage("审核结束！");
            this.DialogResult = true;
        }

        private void OKButton1_Click(object sender, RoutedEventArgs e)
        {
            istongyi = "同意";
        }

        private void OKButton2_Click(object sender, RoutedEventArgs e)
        {
            istongyi = "不同意";
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            Client1.ShenHeYanQiGuaZhiEmpAsync(List, istongyi);

        }


        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }
    }
}
